package initialize

import (
	"marketing-server/global"
	"marketing-server/model/marketing/xiaohongshu"
)

func bizModel() error {
	db := global.MS_DB
	err := db.AutoMigrate()
	if err != nil {
		return err
	}
	xiaohongshuAliasDb := global.GetGlobalDBByDBName("xiaohongshuAlias")
	xiaohongshuAliasDb.AutoMigrate(xiaohongshu.XhsTicket{}, xiaohongshu.XhsAccessToken{}, xiaohongshu.XhsPreAuthCode{})
	return nil
}
